﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Enferno.Public.Web.Models
{
    public class CompanyModel : CompanyBaseModel<CompanyInformationModel, AddressModel>
    {
        
    }

    public class CompanyBaseModel<TCompanyInformationModel, TAddressModel>
        where TCompanyInformationModel: CompanyInformationModel
        where TAddressModel: AddressModel
    {
        public IEnumerable<TAddressModel> DeliveryAddresses { get; set; }
        public TAddressModel InvoiceAddress { get; set; }
        public TCompanyInformationModel CompanyInformation { get; set; }
        public bool UseInvoiceAddressAsDeliveryAddress { get; set; }
    }
}
